package com.CGLIB动态代理;

import com.JDK动态代理.dao.SmsService;

/**
 * CGLIB动态代理
 * 2022年4月6日 00:19:11
 */
public class TestMyCGLIBProxy {
    public static void main(String[] args) {
        // SmsService service= (SmsService) GetMyProxy.getProxy(AliSmsService.class);
        AliSmsService proxy = (AliSmsService) MyMethodInterceptor.getProxy(new AliSmsService());
        proxy.sendMessage("CGLIB动态代理");

    }
}
